<?php


namespace app\apiadmin\controller\behavior;


use app\common\controller\BaseController;
use app\apiadmin\service\behavior\InvitationService;
use app\common\utils\Res;

class Invitation extends BaseController
{
    
    public function del()
    {
        $param = $this->request->param();
        $list = InvitationService::delId($param['id']);
        return Res::ok($list);
    }
    
    public function list()
    {
        $param = $this->request->param();
        $list = InvitationService::invitationList($param);
        return Res::ok($list);
    }

}